package event
{
	import flash.events.Event;
	import flash.events.IEventDispatcher;
	
	/**
	 *	游戏时间，用obj传值 
	 * @author SXT
	 */
	public class GameEvent extends Event
	{
		/**
		 *游戏开始 
		 */
		public static const GAME_STATE_START:String = "game_state_start";
		/**
		 *游戏结束 
		 */
		public static const GAME_STATE_END:String = "game_state_end";
		/**
		 *建造塔 
		 */
		public static const GAME_BUILD_TOWER:String = "game_build_tower";
		/**
		 *金币变更 
		 */		
		public static const CHANGE_POINT:String = "change_point";
		/**
		 *通过本关 
		 */		
		public static const GAME_LEVEL_PASS:String = "LEVEL_PASS";
		
		public var data:Object;
		
		public function GameEvent(type:String,obj:Object = null)
		{
			super(type);
			this.data = obj;
		}
		
//		override public function dispatchEvent(event:Event,obj:Object = null):void{
//			this.obj = obj;
//			super.dispatchEvent(event);
//		}
		
//		override public function addEventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=true):void{
//			super.addEventListener(type,listener,useCapture,priority,useWeakReference);
//		}
	}
}